﻿using Microsoft.AspNetCore.Mvc;
using Model;
using Service;

namespace SamsoniteProject.Controllers
{
    [ApiController]
    [Route("[controller]")]
    public class ApiTestController : ControllerBase
    {

        private readonly IApiTest _iApiTest;

        public ApiTestController(IApiTest apiTest)
        {
            _iApiTest = apiTest;
        }

        [HttpGet(Name = "GetApiTest")]
        public async Task<List<AcceptModel>> Get(string url, int page = 1, int pageSize = 10)
        {
            //Console.WriteLine("123132");
            return await _iApiTest.GetAcceptModel(url, page, pageSize);
        }
    }
}
